<?php

namespace App\Console\Commands\Tools;

use App\Kuafu\Pay\BasePay;
use App\Kuafu\Pay\Channel\FuYou\FuYouBase;
use App\Kuafu\Pay\Service\PayService;
use App\Kuafu\Shop\Service\ShopCameraSyncService;
use App\Kuafu\WaiMai\Enum\WaiMaiDBEnum;
use App\Library\FeiShu\SendFs;
use Illuminate\Console\Command;
use Illuminate\Support\Facades\Log;

class YlkCameraImportCommand extends Command
{
    /**
     * The name and signature of the console command.
     *
     * @var string
     */
    protected $signature = 'tools:import-ylk';

    /**
     * The console command description.
     *
     * @var string
     */
    protected $description = '悠络客摄像头门店绑定同步';

    /**
     * Create a new command instance.
     *
     * @return void
     */
    public function __construct()
    {
        parent::__construct();
    }

    /**
     * Execute the console command
     *
     * @return int
     *
     */
    public function handle()
    {
        $server = new ShopCameraSyncService();

        $server->syncYlkCameraSupplierId();
        SendFs::newRobot(SendFs::ROBOT_BUSINESS_WARING)
              ->setTitleContent('悠络客门店信息绑定 更新 完成 ' . date('Y-m-d H:i:s'), '👍🏻')->send();

    }
}
